package com.atguigu.stream.controller;

import com.atguigu.stream.service.IMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MessageController {


    @Autowired
    private IMessageService service;


    @GetMapping("/sendMsg")
    @ResponseBody
    public String sendMsg(){
        return service.sendMsg();
    }

}
